<%@ page contentType="text/html; charset=gbk" pageEncoding="utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>客户详细信息</title>
<link href="../style/main.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="../style/style.css" />

<style type="text/css">
<!--
@import url("../style/table_css.css");
-->
</style>
<script src="../js/jquery.js"></script>
<%@ taglib prefix="s" uri="/struts-tags" %>

<script type="text/javascript">
	function startEdit()
	{
		var id = document.getElementById("clientId").value;
		if(id == null || id.length <= 0)
		{
			alert("未指定修改的客户ID");
		}
		else
		{
			document.location = "clientInfo!startEdit?clientId="+id;
		}
	}
</script>

</head>
<body>
<table width="1000" cellpadding="0" cellspacing="0" class="table">
  <tr>
    <td>
      <table width="100%" cellpadding="0" cellspacing="0" class="table2">
        <tr>
          <td valign="top">

        <div class="mainarea">

                <table width="100%" cellpadding="0" cellspacing="0"class="table3">
                  <tr>
                    <td width="6%" class="title">&nbsp;</td>
                    <td width="5%"><a href="clientinfo_new.jsp"><span class="clientinfo_but">新&nbsp;增</span></a></td>
                    <td width="5%" ><a onclick="javascript:startEdit();" href="javascript:void(0);"><img src="../images/btn_modify.gif" width="50" height="20" /></a></td>
                    <td width="5%" ><img src="../images/btn_del.gif" alt="3" /></td>
                    <td width="5%" ><img src="../images/btn_refresh.gif" alt="3" width="50" height="20" /></td>
                    <td width="18%" >&nbsp;</td>
                    <td width="5%" ><span class="clientinfo_but">导&nbsp;入</span></td>
                    <td width="5%" ><span class="clientinfo_but">导&nbsp;出</span></td>
                    <td width="5%" ><span class="clientinfo_but">打&nbsp;印</span></td>
                    <td width="14%" >&nbsp;</td>
                  </tr>
                </table>
			<s:hidden name="client.clientId" id="clientId"></s:hidden>
            <div class="search" style="padding:10px">
              <table cellpadding="0" cellspacing="0" width="100%" class="table4">
                  <tr>
                    <th height="25" colspan="5" bgcolor="#BBD2F7" class="title">客户基本信息</th>
                  </tr>
                  <tr>
                    <th width="51">&nbsp;</th>
                    <th width="102" align="right"> 客户编号： </th>
                    <td width="293"><s:property value="client.clientId"/></td>
                    <th width="80"> 客户名称： </th>
                    <td width="428"><s:property value="client.clientName"/></td>
                  </tr>
                  <tbody id="tbody_2" >
                    <tr>
                      <th>&nbsp;</th>
                      <th height="19" align="right"> 客户类别：</th>
                      <td><s:property value="client.clientType"/></td>
                      <th>性&nbsp;&nbsp;&nbsp;&nbsp;别：</th>
                      <td><s:property value="client.clientSex"/></td>
                    </tr>
                     <tr>
                     <th>&nbsp;</th>
                      <th align="right">证件类型：</th>
                      <td><s:property value="client.cardType"/></td>
                      <th>生&nbsp;&nbsp;&nbsp;&nbsp;日：</th>
                      <td><s:date name="client.clientBorndate" format="yyyy-MM-dd"/>
                      </td>
                    </tr>
                      <tr>
                      <th>&nbsp;</th>
                      <th align="right">证件号码：</th>
                      <td><s:property value="client.clientIdcard"/></td>
                      <th>有效日期：</th>
                      <td><s:date name="client.activeToDate" format="yyyy-MM-dd"/></td>
                    </tr>
                    
                    
                    <tr>
                      <th>&nbsp;</th>
                      <th align="right">所属地区：</th>
                      <td><s:property value="client.area.areaName"/></td>
                      <th> 手&nbsp;&nbsp;&nbsp; 机： </th>
                      <td><s:property value="client.clientPhone"/></td>
                    </tr>
                    <tr>
                      <th>&nbsp;</th>
                      <th height="19" align="right"> 客户级别：</th>
                      <td><s:property value="client.clientlevel.clientlevelId"/></td>
                      <th>业 务 员： </th>
                    <td><s:property value="client.employee.employeeId"/></td>
                    </tr>
                  </tbody>
                  <tr>
                    <th>&nbsp;</th>
                    <th align="right">行业类型：</th>
                    <td><s:property value="client.clientIndustry"/></td>
                    <th>客户电话：</th>
                    <td><s:property value="client.clienttelephone"/></td>
                  </tr>
                  
                  <tr>
                    <th>&nbsp;</th>
                    <th align="right">通信地址：</th>
                    <td><s:property value="client.clientAddress"/> </td>
                    <th>传&nbsp;&nbsp;&nbsp;&nbsp;真：</th>
                    <td><s:property value="client.clientfax"/></td>
                  </tr>
                  <tr>
                    <th>&nbsp;</th>
                    <th align="right">电子邮件：</th>
                    <td><s:property value="client.clientemail"/></td>
                    <th>邮&nbsp;&nbsp;&nbsp;&nbsp;编：</th>
                    <td><s:property value="client.clientPostcode"/></td>
                  </tr>
                  <tr>
                    <th>&nbsp;</th>
                    <th align="right">开户银行：</th>
                    <td><s:property value="client.cbank"/></td>
                     <th>银行账号：</th>
                    <td><s:property value="client.caccount"/></td>
                  </tr>
                  <tr>
                    <th>&nbsp;</th>
                    <th align="right">工作单位：</th>
                    <td><s:property value="client.workCompany"/></td>
                    <th>婚姻状况：</th>
                    <td><s:property value="client.maryState"/></td>
                  </tr>	
                   <tr>
                    <th>&nbsp;</th>
                    <th align="right">职位名称：</th>
                    <td><s:property value="client.positionName"/></td>
                    <th>最高学历：</th>
                    <td><s:property value="client.eduState"/></td>
                  </tr>
                    <tr>
                    <th>&nbsp;</th>
                    <th align="right">国&nbsp;&nbsp;&nbsp;籍：</th>
                    <td><s:property value="client.countyBook"/></td>
                    <th>户籍：</th>
                    <td><s:property value="client.stateBook"/></td>
                  </tr>
                    <tr>
                    <th>&nbsp;</th>
                    <th align="right">户籍地址：</th>
                    <td><s:property value="client.stateBookadd"/></td>
                    <th>登记日期：</th>
                    <td><s:date name="client.addDate" format="yyyy-MM-dd"/></td>
                  </tr>
                  <tr>
                    <th colspan="5">&nbsp;</th>
                  </tr>
                </table>
                <table cellpadding="0" cellspacing="0" width="100%" class="table5">
                  <tr>
                    <th height="25" colspan="2" bgcolor="#BBD2F7" class="title">附加信息</th>
                  </tr>
                  <tr>
                    <th valign="top"  class="fjxx_left"> 背景资料： </th>
                    <td width="1103">
                    	<s:property value="client.cbackg" />
                    </td>
                  </tr>
                  <tbody id="tbody_3" >
                    <tr>
                      <th height="19" valign="top" class="fjxx_left"> 兴趣爱好：</th>
                      <td>
                    	<s:property value="client.chobby" />
                      </td>
                    </tr>
                    <tr>
                      <th valign="top" class="fjxx_left">备&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
                      <td>
                      	<s:property value="client.clmemo" />
                      </td>
                    </tr>
                    <tr>
                      <th valign="top" class="fjxx_left">风险资料：</th>
                      <td>
                      	<s:property value="client.risk" />
                      </td>
                    </tr>
                  </tbody>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbody6" style="display:block">
  <tr>
    <td>
      </td>
  </tr>
</table>

	<table cellpadding="0" cellspacing="0" width="100%" class="table6">
       <tr>
         <td width="1103" height="30" bgcolor="#BBD2F7" class="title">
         	<a class="on">联系人</a>
         	<a>销售跟进</a>
         	<a>签单记录</a>
         	<a>服务记录</a>
         	<a>特别提醒</a>
         </td>
       </tr>
     </table>
<script type="text/javascript">
$(".table6 a").each(function(i){
	$(this).click(function()
	{
		$(".table6 a").removeClass("on")
		$(this).addClass("on");;
		
	})
})

</script>

            </div>
            <table width="100%" cellpadding="0" cellspacing="1" class="dg_borderstyle">
            <thead>
				<tr>
	                <th width="35"> <input type="checkbox" onclick="docheck()" id="chk_all" /></th>
	                <th width="72">联系人</th>
	                <th width="143">联系人身份证</th>
	                <th width="110">联系人手机</th>
	                <th width="96">联系人电话</th>
	                <th width="96">传真</th>
	                <th width="92">出生日期</th>
	                <th width="175">电子邮箱</th>
                </tr>
            </thead>
            <s:iterator value="#request.contactList" status="st" id="contactList">
             <tr>
                <td>
            		<s:checkbox name="chks" id="%{'ch'+#st.getIndex()}" fieldValue="%{contactId}" cssStyle="width:30px;border:0" theme="simple" />
				</td>
                <td>
                	<a href="contact!showContactInfo?contactId=<s:property value='contactId'/>">
                		<s:property value="contactName" default=""/>
                	</a>
                </td>
                <td>
                	<s:property value="contactIdcard" default=""/>
                </td>
                <td>
                	<s:property value="contactPhone" default=""/>
                </td>
                <td>
                	<s:property value="contacttele" default="" />
                </td>
                <td>
                	<s:property value="contactfax" default="" />
                </td>
                <td>
                	<s:date name="contactBornDate" format="yyyy-MM-dd" />
                </td>
                <td>
                	<s:property value="contactemail" default="" />
                </td>
             </tr>
            </s:iterator>
            </table>
          </div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

</body>
</html>
